<?php

class DBU_Db_Exception extends Exception {

	public function __construct($message, $code = E_USER_ERROR){
		parent::__construct($message, $code);
	}

    public function log() {
        DBU_Logger::instance()->add('DB ERROR ['. $this->getMessage() .']');
    }
}